home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / enigma / earcd / emula / arosdv19.lha / AROS / intuition / setattrsa.c < prev    next >
C/C++ Source or Header  |  1996-10-24  |  2KB  |  78 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: setattrsa.c,v 1.2 1996/10/24 15:51:24 aros Exp $
  4.     $Log: setattrsa.c,v $
  5.     Revision 1.2  1996/10/24 15:51:24  aros
  6.     Use the official AROS macros over the __AROS versions.
  7.  
  8.     Revision 1.1  1996/08/28 17:55:36  digulla
  9.     Proportional gadgets
  10.     BOOPSI
  11.  
  12.  
  13.     Desc:
  14.     Lang: english
  15. */
  16. #include <clib/alib_protos.h>
  17. #include "intuition_intern.h"
  18.  
  19. /*****************************************************************************
  20.  
  21.     NAME */
  22.     #include <intuition/classusr.h>
  23.     #include <clib/intuition_protos.h>
  24.  
  25.     AROS_LH2(ULONG, SetAttrsA,
  26.  
  27. /*  SYNOPSIS */
  28.     AROS_LHA(APTR            , object, A0),
  29.     AROS_LHA(struct TagItem *, tagList, A1),
  30.  
  31. /*  LOCATION */
  32.     struct IntuitionBase *, IntuitionBase, 108, Intuition)
  33.  
  34. /*  FUNCTION
  35.     Changes several attributes of an object at the same time. How the
  36.     object interprets the new attributes depends on the class.
  37.  
  38.     INPUTS
  39.     object - Change the attributes of this object
  40.     tagList - This is a list of attribute/value-pairs
  41.  
  42.     RESULT
  43.     Depends in the class. For gadgets, this value is non-zero if
  44.     they need redrawing after the values have changed. Other classes
  45.     will define other return values.
  46.  
  47.     NOTES
  48.     This function sends OM_SET to the object.
  49.  
  50.     EXAMPLE
  51.  
  52.     BUGS
  53.  
  54.     SEE ALSO
  55.     NewObject(), DisposeObject(), GetAttr(), MakeClass(),
  56.     "Basic Object-Oriented Programming System for Intuition" and
  57.     "boopsi Class Reference" Dokument.
  58.  
  59.     INTERNALS
  60.  
  61.     HISTORY
  62.     29-10-95    digulla automatically created from
  63.                 intuition_lib.fd and clib/intuition_protos.h
  64.  
  65. *****************************************************************************/
  66. {
  67.     AROS_LIBFUNC_INIT
  68.     AROS_LIBBASE_EXT_DECL(struct IntuitionBase *,IntuitionBase)
  69.     struct opSet ops;
  70.  
  71.     ops.MethodID     = OM_SET;
  72.     ops.ops_AttrList = tagList;
  73.     ops.ops_GInfo    = NULL;
  74.  
  75.     return (DoMethodA (object, (Msg)&ops));
  76.     AROS_LIBFUNC_EXIT
  77. } /* SetAttrsA */
  78.